package org.ben.xintoucloud.javase.oopteacher;

/**
 * @Author: Ben
 * @Date: 2019/7/10 15:52
 */
public class Teacher {
    private String name;
    private int age;
    private String education;
    private String position;

    public Teacher(String name, int age, String education, String position) {
        this.name = name;
        this.age = age;
        this.education = education;
        this.position = position;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }


    public String sayHello(){
        return String.format("姓名：%s，年龄：%s岁，学历：%s，职位：%s",name,age,education,position);
    }
}
